package org.gdsdxy.pmmp.dao;

import java.util.List;

import org.gdsdxy.pmmp.entity.Email;

public interface IEmailDao {
	public List<Email> selectEmailsByUserId(Integer id);
  
  public List<Email> selectEmailsByReceiver(String receiver);
  
  public List<Email> selectEmailsByReceiverByFy(String receiver,int start,int size);
  
  public long countEmails(String receiver);
  
	public void saveEmail(Email email);
  
  public void saveEmails(List<Email> emails);
	
	public void deleteEmail(Email email);
  
  public Email getById(int id);
  
  public void deleteById(int emailId) ;

  public void deleteByIds(List<Integer> emailIds) ;
  
  public void update(Email email);
}
